package com.example.g7640.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author  
 * @since 2024-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * Primary Key
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * Order ID (Foreign Key)
     */
    private Integer oid;

    /**
     * Product ID
     */
    private Integer pid;

    /**
     * Quantity
     */
    private Integer quantity;

    /**
     * Delivery Requirement ID
     */
    private Integer drid;

    /**
     * Order Detail Status (0 created, 1 expressing, 2 finished, 3 canceled)
     */
    private Integer status;

    private Integer vid;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt = LocalDateTime.now();


}
